package com.usian.feign;

import com.usian.pojo.SearchItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("usian-search-service")
public interface SearchItemFeign {

    @RequestMapping("importAll")
    public void importAll();
    @RequestMapping("list")
    public List<SearchItem> selectByQ(@RequestParam String q,@RequestParam Integer page,@RequestParam Integer pagesize);
}
